package com.gylang.im.core.model;

import com.gylang.commons.converter.ObjectConverter;
import lombok.Data;

/**
 * @author gylang
 * data 2020/8/20
 * @version v0.0.1
 */
@Data
public class BaseVO<DO> {

    public BaseVO<DO> defConverterVO(DO d) {
        return ObjectConverter.objCopy(d, this);
    }

    /**
     * 可以复写方法
     *
     * @param d do
     * @return do
     */
    public BaseVO<DO> converterDO(DO d) {
        return defConverterVO(d);
    }


}
